home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
COMPILER
/
SATHER
/
!Sather
/
Library
/
pSather
/
config
/
ll_lock
next >
Wrap
Text File
|
1996-02-01
|
773b
|
37 lines
#ifndef LL_LOCK_CONFIG
#define LL_LOCK_CONFIG
#ifdef PP
#undef PP
#endif
#ifdef I
#undef I
#endif
#ifdef E
#undef E
#endif
#ifdef B
#undef B
#endif
#define PP no_pre,no_post
#define I import
#define E export
#define B block
#define V var "@r $$;"
#define VOL volatile
-- most of the functions and macros used in this file are defined
-- in am.h, the rest in pSather.h
LL_LOCK_INIT: PP,VOL,exec "$0->lck=LCK_CREATE;";
LL_LOCK_L_LCK: PP,VOL,exec "LCK_LOCK($0->lck);";
LL_LOCK_L_UNLCK: PP,VOL,exec "LCK_UNLOCK($0->lck);";
LL_LOCK_L_TRY: PP,VOL,V,exec "$$=LCK_TRY($0->lck);" "$$";
LL_LOCK_LCK: PP,VOL,exec "ll_lock_lck_remote($0);";
LL_LOCK_UNLCK: PP,VOL,exec "ll_lock_unlck_remote($0);";
LL_LOCK_TRY: PP,VOL,V,exec "$$=ll_lock_try_remote($0);" "$$";
#endif